package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;

public class OverBean extends Bean {

  private Image over;
  private static int overX;
  private static int overY0;
  private static int overY1;
  private static int overW;
  private static int overH;

  public void initBean(Magicanvas cvs) {
    this.over = getImage("/res/img/over.png");
    trackerImage(this.over, cvs);

    overW = this.over.getWidth(cvs);
    overH = this.over.getHeight(cvs);

    overX = 172 - overW / 2;
    overY0 = -overH;
    overY1 = (int) (307.0F - overH * 3.5F);
  }

  public Image getOver() {
    return this.over;
  }

  public static int getOverX() {
    return overX;
  }

  public static int getOverY0() {
    return overY0;
  }

  public static int getOverY1() {
    return overY1;
  }

  public static int getOverW() {
    return overW;
  }

  public static int getOverH() {
    return overH;
  }

  public static void setOverY0(int y) {
    overY0 = y;
  }
}
